package me.yricky.hid.desktop.mainnav

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Checkbox
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import me.yricky.hid.desktop.AppState
import me.yricky.usbhid.UsbHid

class MainNavHome(private val appState: AppState): MainNav() {
    @Composable
    override fun Content(modifier: Modifier) {
        Box(Modifier.fillMaxSize()){
            var log by remember {
                mutableStateOf(appState.hid.enableLog)
            }
            Checkbox(log,{log = it;appState.hid.enableLog = it})
        }
    }
}